package com.wl.application.feign.impl;

import com.wl.application.feign.api.ProviderApi;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * @author wl
 * @version 1.0
 * @date 2022/7/25
 * @description:
 */
@Component
public class ProviderApiImpl implements ProviderApi {
    @Override
    public String hello(String name, Integer age) {
        return "出现错误，返回兜底数据！";
    }

    @Override
    public Map save(Map<String, Object> map) {
        map.put("error","出现错误，返回兜底数据！");
        return map;
    }

    @Override
    public String timeout() {
        return "出现错误，返回兜底数据！";
    }

    @Override
    public String del(Integer id) {
        return "出现错误，返回兜底数据！";
    }
}
